import request from "@/request/api";

//品牌库接口
//1.作业指导书查询接口
export function queryInstructionList(data) {
  return request({
    url: "/eam-service-standard/instruction/page",
    method: "get",
    params: data,
  });
}
//2、作业指导书新增接口
export function addInstruction(data) {
  return request({
    url: "/eam-service-standard/instruction",
    method: "post",
    data: data,
  });
}
//2、作业指导书修改接口
export function updateInstruction(data) {
  return request({
    url: "/eam-service-standard/instruction",
    method: "put",
    data: data,
  });
}
//3、作业指导书删除接口
export function deleteInstruction(data) {
  return request({
    url: "/eam-service-standard/instruction",
    method: "delete",
    params: data,
  });
}
//设置为公共标准
export function setCommonInstruction(data) {
  return request({
    url: "/eam-service-standard/instruction/updateToPublic",
    method: "put",
    params: data,
  });
}
